home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / StreamNOP / Read Me About StreamNOP next >
Encoding:
Text File  |  2000-10-06  |  2.1 KB  |  62 lines  |  [TEXT/ttxt]

  1. Read Me About StreamNOP
  2.  
  3. 1.0b3
  4.  
  5. StreamNOP is a sample STREAMS module that was designed for you to use as a template when creating STREAMS modules.  The template demonstrates the following features:
  6.  
  7. 1. An empty STREAMS module that does nothing to messages that pass through it.
  8.  
  9. 2. Set up for using OT debugging macros.
  10.  
  11. 3. Set up for Instrumentation using the Instrumentation SDK.
  12.  
  13. 4. My standard technique for getting per-stream data.
  14.  
  15. 5. All my standard asserts.
  16.  
  17. StreamNOP is largely derived from the TPIFile source, but it is simplified to the point where it makes a useful template.
  18.  
  19. Packing List
  20.  
  21. The StreamNOP package contains the following items:
  22.  
  23. • Read Me About StreamNOP — This document.
  24.  
  25. • StreamNOP.mcp — A PPC project file to build the “StreamNOP” module.
  26. • StreamNOP — A compiled version of the StreamNOP.µ project.
  27.  
  28. • StreamNOP.c — Source to the StreamNOP module.
  29.  
  30. Installation and Execution
  31.  
  32. To test the sample, do the following:
  33.  
  34. 1. Drag the “StreamNOP” module into your Extensions folder.
  35.  
  36. 2. You can now open a stream using the following code snippet and StreamNOP will be inserted in the stream:
  37.  
  38.   ep = OTOpenEndpoint(OTCreateConfiguration("StreamNOP,tcp"), …);
  39.  
  40. Building the Sample
  41.  
  42. This sample was built using the Metrowerks CodeWarrior Pro 2 environment upgraded to Universal Interfaces 3.3.2.
  43.  
  44. To rebuild the sample, first open the project then choose Make from the Project menu to build the StreamNOP module.
  45.  
  46. Credits and Version History
  47.  
  48. If you find any problems with this sample, mail <DTS@apple.com> as the first line of your mail and I’ll try to fix them up.
  49.  
  50. Version 1.0b1 (Aug 1997) is the first release.
  51.  
  52. Version 1.0b2 (Jul 1998) is an update to the CodeWarrior Pro 2 environment with OT 1.3 interfaces and libraries.  This was prompted by the problems CodeWarrior has converting projects with “.exp” files.  I now use #pragma export instead of a “.exp” file.  There are no code changes.
  53.  
  54. Version 1.0b3 (Oct 2000) is a minor update to provider compatibility with Universal Interfaces 3.3.2.
  55.  
  56. Share and Enjoy
  57.  
  58. Apple Developer Technical Support
  59. Networking, Communications, Hardware
  60.  
  61. 6 Oct 2000
  62.